<?php
/* @var $this HrOptionController */
/* @var $dataProvider CActiveDataProvider */

$this->breadcrumbs=array(
	'Hr Options',
);

$this->menu=array(
	array('label'=>'Create HrOption', 'url'=>array('create')),
	array('label'=>'Manage HrOption', 'url'=>array('admin')),
);
?>

<span class="page_h3">Hr Options</span>

<?php
$this->widget('zii.widgets.grid.CGridView', array(
    'id'=>'user-grid',
    'dataProvider'=>$dataProvider,
	'columns'=>array( 
		'id', 
		'note',
		'option_name',
		'option_value',
		'app_id',
		array(            // display a column with "view", "update" and "delete" buttons
            'class'=>'CButtonColumn',
			'template'=>'{audit}',
			'buttons'=>array(
                    'audit' => array(
                            'label'=>'审核',     // text label of the button
                            'url'=>'Yii::app()->controller->createUrl("hrOption/update",array("id"=>$data->primaryKey))',       // a PHP expression for generating the URL of the button
                            'imageUrl'=>Yii::app()->request->baseUrl.'/global/img/icons/page_white_edit.png',  // image URL of the button. If not set or false, a text link is used
                            'options'=>array('style'=>'cursor:pointer;'), // HTML options for the button tag
                            'visible'=>'true',
                    ),
            ),
			
        ),
		), 
		
));
?>
